package com.wbk.user.feign;

import com.github.pagehelper.PageInfo;
import com.wbk.user.qo.UserBanQO;
import com.wbk.user.vo.UserExtVO;
import com.wbk.user.vo.UserVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import result.Result;

@Component
@FeignClient(value = "lottery-system-user")
public interface UserFeign {

    @GetMapping("/feign/admin/user/userDetail/{userNo}")
    Result<UserExtVO> userDetail(@PathVariable("userNo") Long userNo);

    @PostMapping("/feign/admin/user/userBan")
    Result<String> userBan(UserBanQO userBanQO);

    @GetMapping("/feign/admin/user/user/{userNo}")
    Result<UserVO> user(@PathVariable("userNo") Long userNo);

    @GetMapping("/feign/admin/user/userByMobile/{mobile}")
    Result<UserVO> userByMobile(@PathVariable("mobile") String mobile);
}
